package com.cqd.rp_goods.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mht
 * @since 2020-03-16
 */
@Data
@TableName("db_use")
public class DbUse extends Model<DbUse> {


    private static final long serialVersionUID = 1L;

    /**
     * 患者id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 患者名称
     */
    private String name;

    /**
     * 卡号
     */
    private String cards;

    /**
     * 患者年龄
     */
    private Integer age;

    /**
     * 患者出生日期
     */
    private Date datea;

    /**
     * 患者性别
     */
    private String sex;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 证件号
     */
    private String num;

    /**
     * 接诊类型
     */
    private Integer types;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
